/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.GUI.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import view.GUI.graphic.GraphicView;

/**
 *
 * @author Jelle
 */
public class SnapAction extends AbstractAction {

    private GraphicView gview;

    public SnapAction(GraphicView gview) {
        this.gview = gview;
    }

    public void actionPerformed(ActionEvent e) {
        System.out.println("SnapAction actionPerformed");
       
        if(gview.isSnapped()){
            System.out.println("TIS GESELECTEERD");
            gview.setSnapMode(false);
        }else{
            System.out.println("TIS NIET GESLECTEERD");
            gview.setSnapMode(true);
        }
    }
}
